<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title><?= $page_title ?></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<?=link_tag('css/core.css'); ?>
		<?=link_tag('css/layout.css'); ?>
		<?=link_tag('css/menu.css'); ?>
		<script language="javascript" type="text/javascript" src="http://www.google.com/jsapi"></script>
		<script type="text/javascript">
			google.load("jquery", "1");
		</script>
    </head>
    <body>
        <div id="wrapper">
			<div id="header">
                <div id="logo">
                    <div id="companyName"></div>
                    <div id="tmt"></div>
                    <div id="version">Version 1.00</div>
                </div>
            </div>
            <?php if($this -> session -> userdata('user_id')): ?>
            <div id="mainMenu">
        	<ul>
			    <li><?= anchor("core", "Index") ?></li>
			    <li><?= anchor("user_manager", "Users") ?></li>
			    <li><? if($this -> session -> userdata('level') > 98) echo anchor("project_manager", "Projects") ?></li>
			    <li><?= anchor("hour_manager", "Work hours") ?></li>
			    <li><? if($this -> session -> userdata('level') > 98) echo anchor("hour_manager/listHours", "Reports") ?></li>
			</ul>    
			</div>
			<?php endif; ?>
		<div id="content">
	<?= $this -> session -> flashdata('message'); ?><br />